<?phpnamespace app\api\controller\timetable;use think\config;class Index extends Base{    protected $noNeedLogin = ['*'];    protected $noNeedRight = ['*'];    public function index()    {        /*启动页配置*/        $site  = Config::get("site");        $riderStartSetting = [            'riderStartImage' => cdnurl($site['rider_start_image'], true),            'riderStartDuration' => (int)$site['rider_start_duration']*1000,            'riderIsStart' => $site['rider_is_start']=='0'?false:true        ];        $data = [            'riderStartSetting' => $riderStartSetting        ];        $this->success('', $data);    }    /*隐私政策*/    public function privacyPolicy(){        $config = Config::get('site');        $this->success('', $config['rider_privacy_policy']);    }    /*用户协议*/    public function userPrivacy(){        $config = Config::get('site');        $this->success('', $config['rider_user_privacy']);    }}